/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.global.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class HomeImagenesPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "USR_TVCFIM_NORDEN", nullable = false)
    private int orden;
    @Basic(optional = false)
    @Column(name = "USR_TVCFIM_TVCONF_ID", nullable = false)
    private int parametroId;

    public HomeImagenesPK() {

    }

    public HomeImagenesPK(int orden, int parametroId) {
        this.orden = orden;
        this.parametroId = parametroId;
    }

    public int getOrden() {
        return orden;
    }

    public void setOrden(int orden) {
        this.orden = orden;
    }

    public int getParametroId() {
        return parametroId;
    }

    public void setParametroId(int parametroId) {
        this.parametroId = parametroId;
    }

    
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) orden;
        hash += (int) parametroId;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof HomeImagenesPK)) {
            return false;
        }
        HomeImagenesPK other = (HomeImagenesPK) object;
        if (this.orden != other.orden) {
            return false;
        }
        if (this.parametroId != other.parametroId) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.global.web.HomeImagenesPK[orden=" + orden + ", parametroId=" + parametroId + "]";
    }

}
